home *** CD-ROM | disk | FTP | other *** search
- /*
- File: PrintingUtils.cp
-
- Contains: Useful printing utilities
-
- Written by: Dave Falkenburg, based on code from Dave Hershey
-
- Copyright: Copyright © 1993-1999 by Apple Computer, Inc., All Rights Reserved.
-
- You may incorporate this Apple sample source code into your program(s) without
- restriction. This Apple sample source code has been provided "AS IS" and the
- responsibility for its operation is yours. You are not permitted to redistribute
- this Apple sample source code as "Apple sample source code" after having made
- changes. If you're going to re-distribute the source, we require that you make
- it clear in the source that the code was descended from Apple sample source
- code, but that you've made changes.
-
- Change History (most recent first):
- 7/27/1999 Karl Groethe Updated for Metrowerks Codewarror Pro 2.1
- 9/27/94 DRF AppLib.h is now Sprocket.h
-
- */
-
- #include "Sprocket.h"
-
- #if qUseQuickDrawGX
-
- #include <graphics macintosh.h>
- #include <graphics routines.h>
- #include <PrintingManager.h>
-
-
- // PrintingEventOverride is our generic event handler for QuickDrawGX.
- // It alows us to handle events while the QuickDrawGX movable modal
- // printing dialogs are displayed.
-
- OSErr
- PrintingEventOverrideForGX(EventRecord *anEvent, Boolean filterEvent)
- {
- if (!filterEvent)
- switch (anEvent->what)
- {
- case mouseDown:
- case keyDown:
- case autoKey:
- break;
-
- default:
- HandleEvent(anEvent);
- }
-
- return noErr;
- }
-
- #endif
-